package cn.cjj.gulimall.product.service;

import cn.cjj.gulimall.product.entity.SpuInfoDescEntity;
import cn.cjj.gulimall.product.vo.json.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.cjj.common.utils.PageUtils;
import cn.cjj.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author cjj
 * @email cjj@gmail.com
 * @date 2021-05-27 20:45:15
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    void saveSpuInfoDesc(SpuInfoDescEntity spuInfoDescEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId);

    SpuInfoEntity getSpuInfo(Long skuId);
}

